package com.example.demo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;

@Configuration
public class ServiceWebClientConfig {

	@Bean("logServiceWebClient")
	public WebClient logServiceWebClient(WebClient.Builder loadBalanced) {
		return loadBalanced.baseUrl("http://log-service").build();
	}
}
